package ncut.shumei.dao;

import ncut.shumei.entity.MaintenanceTask;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface MaintenanceTaskDao {
    List<MaintenanceTask> findAll(@Param("status") String status, 
                                 @Param("elevatorId") Integer elevatorId,
                                 @Param("maintainerId") Integer maintainerId);
    
    MaintenanceTask findById(Integer id);
    
    void insert(MaintenanceTask task);
    
    void update(MaintenanceTask task);
    
    void deleteById(Integer id);
    
    void updateStatus(@Param("id") Integer id, @Param("status") String status);
} 